#include <AnimationWindow.h>
Public Member Functions | |
| AnimationWindow () | |
| void | processInput (double delta, osg::ref_ptr< PhysicsEventHandler > ph) |
| void | setCamera () |
| void | setViewer () |
| void | setScene () |
| osg::ref_ptr< osg::Group > | getRoot () |
| osg::ref_ptr< osgProducer::Viewer > | getViewer () |
| void | createCarPhysics (Vehicle &vehicle, osg::ref_ptr< osg::PositionAttitudeTransform > transform) |
| void | realize () |
| void | addOtherPhysicalObject (TraffEduObject *object) |
| void | createConstantObjects (OSGWindows *osgWindows) |
| void | odeDraw () |
| void | exit (OSGWindows *) |
| vector< CarPhysics * > | getpCarPhys () |
| vector< OtherPhysicalObjects * > | getOtherPhysicalObjects () |
| void | followVehicle (OSGWindows *osgwindows) |
| void | setRotationArray (Vehicle *) |
| void | loadSkyBox (OSGWindows *osgwindows) |
| void | draw () |
| void | generateSeq (OSGWindows *window, TrafficLight *ptr) |
| void | deselectAll (OSGWindows *osgwind) |
Public Attributes | |
| double | physTime |
| double | deltaTime |
| double | throttle |
| double | brake |
| double | steering |
| Audio * | audio_ |
Private Member Functions | |
| void | createControlPoints (Vehicle *vehicle) |
| void | createRotationArray (Vehicle *vehicle) |
Private Attributes | |
| vector< CarPhysics * > | pCarPhysVector |
| vector< OtherPhysicalObjects * > | otherPhysicalObjects |
| osg::Matrixd | myCameraMatrix |
| osg::Matrixd | cameraRotation |
| osg::Matrixd | cameraTrans |
| osg::ref_ptr< osg::Group > | root |
| osg::ref_ptr< osgProducer::Viewer > | viewer |
|
|
A constructor. initializes sound parameters and scene root |
|
|
a normal member taking one argument
|
|
||||||||||||
|
a normal member taking two arguments
|
|
|
a normal member taking one argument
|
|
|
a normal member taking one argument
|
|
|
a normal member taking one argument
|
|
|
|
|
|
a normal member the animation window's main drawing loop is implemented in this function also the PhysicsServer is stepped. |
|
|
|
|
|
a normal member taking one argument
|
|
||||||||||||
|
the traffic lights timing's is implemented in this function.
|
|
|
|
|
|
|
|
|
a normal member
|
|
|
a normal member
|
|
|
a normal member taking one argument adds skybox node to root
|
|
|
a normal member calls carPhysics odeDraw function for all physical car objects |
|
||||||||||||
|
a normal member taking two arguments and returning void.
|
|
|
|
|
|
a normal member sets camera position |
|
|
|
|
|
a normal member binds the root and the viewer |
|
|
a normal member sets up osgProducer::Viewer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
a private variable vector of physical cars |
|
|
|
|
|
a private variable scene root |
|
|
a public variable. when a car is set user controlled, steering is set to define car turn angle when user presses a or d key |
|
|
a public variable. when a car is set user controlled, throttle is set to define car acceleration when user presses w key |
|
|
a private variable viewer |
1.4.6-NO